Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dataset doc updated #27933

Merged

Conversation

ThomasHagebols
Copy link
Contributor

Following up on issue #25320. This pull request clarifies the documentation by adding runnable code for several methods of the Dataset class (zip, concatenate, interleave, map, flat_map)

@mrry @jsimsa

tensorflow/python/data/ops/dataset_ops.py Outdated Show resolved Hide resolved
tensorflow/python/data/ops/dataset_ops.py Outdated Show resolved Hide resolved
tensorflow/python/data/ops/dataset_ops.py Outdated Show resolved Hide resolved
tensorflow/python/data/ops/dataset_ops.py Outdated Show resolved Hide resolved
```

The input signature of `map_func` is determined by the structure of each
element in this dataset. For example:

```python
# NOTE: The following examples use `{ ... }` to represent the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do you introduce this comment here? I thought the purpose of this PR was to replace { ... } with code that runs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are several examples following line in line 944 - 961 that I didn't change in this request and still contain non executable code. I wanted to keep this request small because I expected some feedback. I'll take another look in a separate request.

@rthadur rthadur self-assigned this Apr 18, 2019
@rthadur rthadur added this to Assigned Reviewer in PR Queue via automation Apr 18, 2019
@rthadur rthadur added size:M CL Change Size: Medium comp:data tf.data related issues labels Apr 18, 2019
PR Queue automation moved this from Assigned Reviewer to Approved by Reviewer Apr 18, 2019
@rthadur rthadur added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Apr 18, 2019
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Apr 18, 2019
@rthadur rthadur requested a review from jsimsa April 18, 2019 17:38
@tensorflow-copybara tensorflow-copybara merged commit e4d0406 into tensorflow:master Apr 18, 2019
PR Queue automation moved this from Approved by Reviewer to Merged Apr 18, 2019
tensorflow-copybara pushed a commit that referenced this pull request Apr 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes comp:data tf.data related issues ready to pull PR ready for merge process size:M CL Change Size: Medium
Projects
PR Queue
  
Merged
Development

Successfully merging this pull request may close these issues.

None yet

6 participants